package game.core
{
	import flash.geom.Point;

	public class Angle
	{
		public function Angle()
		{
		}
		
		public static function getValue(p1:Point, p2:Point):Number
		{
			var angle:Number = (Math.atan2(p1.y-p2.y, p1.x-p2.x)) / Math.PI * 180;
			if (angle < 0)
				angle = 360 + angle;
			return angle;
		}
	}
}